<template>
  <div class="nav">
    <i class="fa fa-bars" id="big" @click="showSide"></i>
    <slot></slot>
  </div>
</template>
<script>
  import bus from '../bus.js'
  export default {
    methods: {
      showSide() {
        bus.$emit('sideShow')
      }
    }
  }

</script>
<style scoped>
  .nav {
    width: 100%;
    background: #f5dc3f;
    border-bottom: 1px solid black;
    color: white;

    text-align: center;
    position: fixed;
    top: 0;
    z-index: 100;
  }

  #big {
    width: 1rem;
    height: 1rem;
    font-size: 0.8rem;
    position: absolute;
    top: 0;
    left: 0px;
  }

</style>
